import {createRouter, createWebHashHistory, RouteRecordRaw} from "vue-router"

const routes: RouteRecordRaw[] = [
    {
        path: "/",
        redirect: "/data-cockpit"
    },
    {
        path: "/device",
        name: "/device",
        component: () => import("@/pages/device/index.vue"),
        meta: {
            title: "帅特龙设备看板"
        }
    },
    {
        path: "/data-cockpit",
        name: "/data-cockpit",
        component: () => import("@/pages/data-cockpit/index.vue"),
        meta: {
            title: "帅特龙数据驾驶舱"
        }
    },
    {
        path: "/data-cockpit-show",
        name: "/data-cockpit-show",
        component: () => import("@/pages/data-cockpit-show/index.vue"),
        meta: {
            title: "帅特龙数据驾驶舱"
        }
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})

export default router
